<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="icon" type="image/x-icon" th:href="@{/img/favicon.ico}">

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>添加试卷</title>

    <script th:src="@{/js/jquery-3.3.1.js}"></script>
    <script th:src="@{/js/popper.js}"></script>
    <script th:src="@{/js/toolkit.js}"></script>
    <script th:src="@{/js/component.js}"></script>

    <link th:href="@{/css/antd.css}" rel="stylesheet">
    <link th:href="@{/css/docs.css}" rel="stylesheet">
    <link th:href="@{/css/toolkit-light.css}" rel="stylesheet">

    <style>
        .margin_top {
            margin-top: 12px;
        }

        .logo {
            width: 8%;
            height: auto;
        }

        .nav_top {
            margin-top: 5px;
            right: 1.5%;
        }

        .col-center-block {
            float: none;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .label_top {
            margin-top: 8px;
        }

        .up {
            z-index: 10;
        }
    </style>
</head>
<body>
<div class="m-l-md m-r-md">
    <!--导航栏-->
    <div class="text-md-left margin_top">
        <div class="row">
            <img class="logo col-md-1" th:src="@{/img/ahza-black-oj.png}">
            <ul class="nav nav-bordered col-md-10 nav_top">
                <li class="nav-header form-inline">
                    <h1>后台</h1>
                </li>
                <li class="margin_top">
                    <a href="/main">首页</a>
                </li>
                <li class="active margin_top"><a href="/paper">试卷</a></li>
                <li class="margin_top"><a href="/quiz">考试</a></li>
                <li class="margin_top"><a href="/result">成绩</a></li>
                <li class="margin_top"><a href="/logout">退出系统</a></li>
            </ul>
        </div>
    </div>
    <!--分割线-->
    <div class="row">
        <div class="ant-divider ant-divider-horizontal col-md-12">
            <h3 class="hr-divider-content hr-divider-heading"></h3>
        </div>
    </div>

    <h3 class="text-md-center">添加试卷</h3>
    <div class="row text-md-center docs-example">
        <div class="container">
            <form action="/savePaper" method="post" class="text-md-center">
                <div class="row">
                    <div class="input-group form-group input-with-icon col-md-4">
                        <input class="form-control" type="text" id="name" name="name" placeholder="试卷名称" required>
                        <span class="up icon icon-check"></span>
                    </div>
                </div>
                <div class="row">
                    <div class="input-group form-group input-with-icon col-md-4">
                        <input class="form-control" type="text" id="description" name="description" placeholder="描述"
                               required>
                        <span class="up icon icon-pencil"></span>
                    </div>
                </div>
                <div class="row">
                    <div class="input-group form-group input-with-icon col-md-4">
                        <label class="col-md-3 p-l-0 p-r-0 label_top" for="type">试卷类型</label>
                        <select class="custom-select col-md-9" id="type" name="type">
                            <option value="面向对象程序设计A">面向对象程序设计A</option>
                            <option value="操作系统">操作系统</option>
                            <option value="软件工程导论">软件工程导论</option>
                            <option value="数据结构">数据结构</option>
                            <option value="数据库">数据库</option>
                        </select>
                    </div>
                </div>
                <div class="col-center-block">
                    <div class="row">
                        <div class="input-group form-group col-md-4 col-center-block">
                            <button type="submit" class="btn btn-primary form-control">添加</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>